package com.mugu.yunying.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.mugu.common.annotation.Excel;
import com.mugu.common.core.domain.BaseEntity;

/**
 * 手机验证码对象 tb_phone_code
 * 
 * @author ruoyi
 * @date 2021-03-27
 */
public class PhoneCode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 系统id */
    private Integer id;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 验证码 */
    @Excel(name = "验证码")
    private Integer code;

    /** 状态标志位 0:无效 1:有效 */
    @Excel(name = "状态标志位 0:无效 1:有效")
    private Integer status;

    /** 有效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date effectiveDatetime;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDatetime;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setCode(Integer code) 
    {
        this.code = code;
    }

    public Integer getCode() 
    {
        return code;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setEffectiveDatetime(Date effectiveDatetime) 
    {
        this.effectiveDatetime = effectiveDatetime;
    }

    public Date getEffectiveDatetime() 
    {
        return effectiveDatetime;
    }
    public void setCreateDatetime(Date createDatetime) 
    {
        this.createDatetime = createDatetime;
    }

    public Date getCreateDatetime() 
    {
        return createDatetime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("phone", getPhone())
            .append("code", getCode())
            .append("status", getStatus())
            .append("effectiveDatetime", getEffectiveDatetime())
            .append("createDatetime", getCreateDatetime())
            .toString();
    }
}
